inner function variable access